<extend name="Public/base" />

<block name="style" >
<style>
.page-content{padding:10px 10px;}
</style>
</block>

<block name="body">

    <!-- 弹窗插件 -->
    <include file="Public:artdialog" />
	<!-- 表单验证插件 -->
    <include file="Public:validform" />

    <form action="{:U('')}" method="post" role="form" class="form-horizontal row-border vform">

        <div class="row">
            <div class="col-md-12">
                <div class="block-web">
                    <div class="header">
                        <h3 class="content-header">审核存款充值</h3>
                    </div>
                    <div class="porlets-content">

                        <div class="form-group" >
                            <label class="col-sm-2 control-label"><font class="red">*</font>状态</label>
                            <div class="col-sm-6">
                                <label class="radio-inline">
                                    <input type="radio" checked  name="is_checked" value="1">
                                    <span class="custom-radio"></span> 审核通过且充值
                                </label>
                                <label class="radio-inline">
                                    <input type="radio"   name="is_checked" value="2" >
                                    <span class="custom-radio"></span> 审核拒绝
                                </label>
                            </div>
                        </div>



                        <div class="form-group">
                            <label class="col-sm-2 control-label">用户登录帐号</label>
                            <div class="col-sm-9">
                                <p>{$entity['users']['user_name']}</p>
                            	<div class="Validform_checktip"></div>
                            </div>
                        </div>
               	
               			<div class="form-group">
                            <label class="col-sm-2 control-label">用户手机</label>
                            <div class="col-sm-9">
                                <p>{$entity['users']['mobile_phone']}</p>
                                <div class="Validform_checktip"></div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">充值时间</label>
                            <div class="col-sm-9">
                                <p>{$entity['add_time']|date='Y-m-d H:i:s',###}</p>
                                <div class="Validform_checktip"></div>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><font class="red">*</font><strong style="color:red;font-size:13px;">充值金额</strong></label>
                            <div class="col-sm-9">
                                <input type="number" min="0" name="money" value="{$entity['money']}"  placeholder="请输入充值金额" class="form-control" datatype="*" nullmsg="请输入充值金额" />
                            	<div class="Validform_checktip"></div>
                            </div>
                        </div>

                        
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><font class="red">*</font>收款金额</label>
                            <div class="col-sm-9">
                                <input type="number" min="0" name="gathering_money" value="{$entity['money']}"   placeholder="请输入收款金额" class="form-control " datatype="*" nullmsg="请输入收款金额" />
                            	<div class="Validform_checktip"></div>
                            </div>
                        </div>

                        
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><font class="red">*</font>充值凭证</label>
                            <div class="col-sm-9">
                                <a target="_blank" href="/attas/user_pre_deposit/{$entity['img_name']}">
                                    <img width="100px" src="/attas/user_pre_deposit/{$entity['img_name']}"/>
                                </a>
                                <div class="Validform_checktip"></div>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><font class="red">*</font>收款人</label>
                            <div class="col-sm-9">
                                <input type="text" name="gathering_man" placeholder="请输入收款人" class="form-control"/>
                                <div class="Validform_checktip"></div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><font class="red">*</font>银行流水号/收据号</label>
                            <div class="col-sm-9">
                                <input type="text" name="bank_transaction_id" placeholder="请输入银行流水号/收据号" class="form-control" />
                                <div class="Validform_checktip"></div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><font class="red">*</font>到款时间</label>
                            <div class="col-sm-9">
                                <input type="text" readonly="readonly" id="gathering_time" name="gathering_time" placeholder="请选择到款时间" class="form-control "/>
                                <div class="Validform_checktip"></div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">交易参考</label>
                            <div class="col-sm-9">
                                <textarea class="form-control" name="reference"></textarea>
                            </div>
                        </div>

                        
                        <div class="form-group">
                            <label class="col-sm-2 control-label">备注</label>
                            <div class="col-sm-9">
                                <p>{$entity['remark']}</p>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label">审核备注</label>
                            <div class="col-sm-9">
                                <textarea class="form-control" name="check_remark"></textarea>
                            </div>
                        </div>
                        <div class="bottom">
                            
                        </div><!--/form-group-->

                        <input  type="hidden"  name="id" value="{$entity['id']}"/>
                        <input  type="hidden"  name="user_id" value="{$entity['user_id']}"/>

						<div class="footer">
				            <button class="btn btn-primary btn-success" type="submit">提交</button>
                            <button class="btn btn-default" type="button" onclick="art.dialog.close();">取消</button>
				        </div>




                    </div><!--/porlets-content-->
                </div><!--/block-web-->
            </div>

        </div>



    </form>




</block>

<block name="script">
	<script type="text/javascript" src="/plugins/laydate/laydate.dev.js"></script>
	<script>
	
		laydate({
	        elem: '#gathering_time',
	        festival: true, //显示节日
	        istime: true,
	        format: 'YYYY-MM-DD hh:mm:ss'
	    });

	</script>
</block>


